package model.characters;

import java.util.HashMap;
import java.util.Map;

public class CharacterState {
	
	public static Integer IDLE = 1;
	public static Integer WALKING = 2;
	public static Integer RUNNING = 3;
	public static Integer JUMPING = 4;
	public static Integer FALLING = 5;
	public static Integer LOWERED = 6;
	public static Integer SHOTTING = 100;
	public static Integer DYING = 1000;

	public Map<Integer, CharacterStateEnum> stateMap;
		
	CharacterState(){
		stateMap = new HashMap<Integer, CharacterStateEnum>();
		
		stateMap.put(-IDLE, CharacterStateEnum.IDLE_LEFT);
		stateMap.put(IDLE, CharacterStateEnum.IDLE_RIGHT);
		stateMap.put(-WALKING, CharacterStateEnum.WALKING_LEFT);
		stateMap.put(WALKING, CharacterStateEnum.WALKING_RIGHT);
		stateMap.put(-RUNNING, CharacterStateEnum.RUNNING_LEFT);
		stateMap.put(RUNNING, CharacterStateEnum.RUNNING_RIGHT);
		stateMap.put(-JUMPING, CharacterStateEnum.JUMPING_LEFT);
		stateMap.put(JUMPING, CharacterStateEnum.JUMPING_RIGHT);
		stateMap.put(-FALLING, CharacterStateEnum.FALLING_LEFT);
		stateMap.put(FALLING, CharacterStateEnum.FALLING_RIGHT);
		stateMap.put(-LOWERED, CharacterStateEnum.LOWERED_LEFT);
		stateMap.put(LOWERED, CharacterStateEnum.LOWERED_RIGHT);
		
		stateMap.put(-DYING, CharacterStateEnum.DYING_LEFT);
		stateMap.put(DYING, CharacterStateEnum.DYING_RIGHT);

		stateMap.put(-(SHOTTING + IDLE), CharacterStateEnum.SHOTTING_IDLE_LEFT);
		stateMap.put((SHOTTING + IDLE), CharacterStateEnum.SHOTTING_IDLE_RIGHT);
		stateMap.put(-(SHOTTING + WALKING), CharacterStateEnum.SHOTTING_WALKING_LEFT);
		stateMap.put((SHOTTING + WALKING), CharacterStateEnum.SHOTTING_WALKING_RIGHT);
		stateMap.put(-(SHOTTING + RUNNING), CharacterStateEnum.SHOTTING_RUNNING_LEFT);
		stateMap.put((SHOTTING + RUNNING), CharacterStateEnum.SHOTTING_RUNNING_RIGHT);
		stateMap.put(-(SHOTTING + JUMPING), CharacterStateEnum.SHOTTING_JUMPING_LEFT);
		stateMap.put((SHOTTING + JUMPING), CharacterStateEnum.SHOTTING_JUMPING_RIGHT);
		stateMap.put(-(SHOTTING + FALLING), CharacterStateEnum.SHOTTING_FALLING_LEFT);
		stateMap.put((SHOTTING + FALLING), CharacterStateEnum.SHOTTING_FALLING_RIGHT);
		stateMap.put(-(SHOTTING + LOWERED), CharacterStateEnum.SHOTTING_LOWERED_LEFT);
		stateMap.put((SHOTTING + LOWERED), CharacterStateEnum.SHOTTING_LOWERED_RIGHT);
		}
	
}
